#include "zlib.h"
-extern FILE* gzfile(gzFile file);
-
#include "allocate.h"
#include "gzip_stream.h"
return (gzFile)s->data;
}
-/** Control buffering on the underlying stream, like setvbuf().
- *
- * @param io gzip stream
- * @param buf buffer
- * @param mode buffering mode (see man setvbuf())
- * @param size buffer size
- * @return 0 on success, non-zero otherwise
- */
-int gzip_stream_setvbuf(IOStream *io, char *buf, int mode, size_t size){
- return setvbuf(gzfile(get_gzfile(io)), buf, mode, size);
-}
-
/** Write to the underlying stream.
*
* @param stream destination
int err;
gzFile *gz = get_gzfile(s);
gzerror(gz, &err);
- return (err == Z_ERRNO ? ferror(gzfile(gz)) : err);
+ return (err == Z_ERRNO ? 1 /* ferror(gzfile(gz)) */ : err);
}
/** Close a gzip stream.
extern IOStream *gzip_stream_new(gzFile *f);
extern IOStream *gzip_stream_fopen(const char *file, const char *flags);
extern IOStream *gzip_stream_fdopen(int fd, const char *flags);
-
-extern int gzip_stream_setvbuf(IOStream *io, char *buf, int mode, size_t size);
#endif
#endif /* !_SP_FILE_STREAM_H_ */
CFLAGS += -I../../xen/include/hypervisor-ifs
CFLAGS += -I../../linux-xen-sparse/include
CFLAGS += -I../xu/lib
+CFLAGS += -I../lib
HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))